export default [
	{
		path: '/',
		redirect: '/home',
	},
	{
		name: '首页',
		path: '/home',
		component: './Home',
	},
	{
		name: '权限管理',
		path: '/access',
		routes: [
			{
				name: '教师权限',
				path: '/access/list',
				component: './Access',
			},
			{
				name: '菜单管理',
				path: '/access/menu',
				component: './Access',
			},
			{
				component: './Exception/404'
			},
		]
	},
  {
    path: '/user',
    layout: false,
    routes: [
      {
        path: '/user',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './user/Login',
          },
        ],
      },
      {
        component: './Exception/404'
      },
    ],
  },
	{
		name: '活动管理',
		path: '/activity',
		routes: [
			{
				name: '活动模块',
				path: '/activity/list',
				component: './Activity'
			},
			{
        component: './Exception/404'
      },
		]
	},
	{
		name: '地址管理',
		path: '/address',
		routes: [
			{
				name: '地址详情',
				path: '/address/list',
				component: './Address',
			},
			{
        component: './Exception/404'
      },
		]
	},
	{
		name: '公告管理',
		path: '/announce',
		routes: [
			{
				name: '公告详情',
				path: '/announce/list',
				component: './Announce',
			},
			{
        component: './Exception/404'
      },
		]
	},
	{
		name: '教师管理',
		path: '/teacher',
		routes: [
			{
				name: '教师列表',
				path: '/teacher/list',
				component: './Teacher',
			},
			{
        component: './Exception/404'
      },
		]
	},
	{
		name: '学生管理',
		path: '/student',
		routes: [
			{
				name: '学生列表',
				path: '/student/list',
				component: './Student',
			},
			{
        component: './Exception/404'
      },
		]
	},
	{
		name: '资讯管理',
		path: '/information',
		routes: [
			{
				name: '资讯详情',
				path: '/information/list',
				component: './Info',
			},
			{
        component: './Exception/404'
      },
		]
	},
	{
		name: '学生成绩管理',
		path: '/score',
		routes: [
			{
				name: '模块成绩汇总',
				path: '/score/collection',
				component: './Score/collection',
			},
			{
				name: '模块成绩详情',
				path: '/score/detail',
				component: './Score/detail',
			},
			{
				name: '模块成绩分析',
				path: '/score/analization',
				component: './Score/analization',
			},
			{
        component: './Exception/404'
      },
		]
	},
	{
		name: 'trk测试',
		path: '/rtk',
		hideInMenu: true,
		component: './RTKDemo',
	},
	{
		component: './Exception/404'
	}
]